GetTagData 方法
public READER_ERR GetTagData(int ant, char bank, int address, int blkcnt, byte[] data, byte[] accesspasswd, short timeout)
| 参数 | 描述 |
|---|---|
| ant | 操作天线 |
| bank | 要读的bank,值范围:从0到4; 0-3:用于Gen2标签; 4:用于ISO18000-6b标签。 |
| address | bank内的起始地址,以块为单位 |
| blkcnt | 要读取的块数 |
| data | 输出参数,用于存储读取的数据。 |
| accesspasswd | 如果需要访问密码,请填写密码(4个字节),如果不需要访问密码,则此参数为null。 |
| timeout | 操作超时时间 |
byte[] data = new byte[4]; byte[] pwd = new byte[4]; pwd[0] = 0x12; pwd[1] = 0x34; pwd[2] = 0x56; pwd[3] = 0x78; Reader.READER_ERR err = GetTagData(1, 0, 2, 2, data, pwd, 1000);